package com.ajavaer.framework.handle;

import java.math.BigDecimal;
import java.util.Map;

public interface AlipayHandle<T> {
    void onMessage(Map<String, String> params) throws Exception;

    T getByOutTradeNo(String out_trade_no);

    boolean checkOrderByAmount(T t, BigDecimal total_amount);

    boolean checkOrderBySellerId(T t, String seller_id);

    void business(T t, Map<String, String> params);
}
